<template>
  <div class="count">
    <h2>我是Count组件</h2>
    <p>价格1:{{ price1 | priceFormat(4) }}</p>
    <p>价格2:{{ price2 | priceFormat }}</p>
  </div>
</template>

<script>
export default {
  name: "Count",
  data() {
    return {
      price1: 12,
      price2: 14.1,
      price3: 18.98,
    };
  },
};
</script>

<style scoped>
.count {
  background-color: pink;
}
</style>
